From: Carlos Soriano Date: Fri, 6 Sep 2013 21:31:03 +0000 (+0200) Subject: appDisplay: Make sure we don't clip folder view X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3489 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6b554337ffec81c8d29fc7e2c605c8bd54f48b9f;p=gnome-shell.git appDisplay: Make sure we don't clip folder view If we round up the value, we make sure we don't clip in any case neither the folder view or the close button. --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index dbcb8d9b6..948d99a1d 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1072,9 +1072,9 @@ const FolderIcon = new Lang.Class({ // StWidget delays style calculation until needed, make sure we use the correct values this.view._grid.actor.ensure_style(); - let offsetForEachSide = (this._popup.getOffset(St.Side.TOP) + - this._popup.getOffset(St.Side.BOTTOM) - - this._popup.getCloseButtonOverlap()) / 2; + let offsetForEachSide = Math.ceil((this._popup.getOffset(St.Side.TOP) + + this._popup.getOffset(St.Side.BOTTOM) - + this._popup.getCloseButtonOverlap()) / 2); // Add extra padding to prevent boxpointer decorations and close button being cut off this.view.setPaddingOffsets(offsetForEachSide); this.view.adaptToSize(this._parentAvailableWidth, this._parentAvailableHeight);